package com.ogj.gulimall.member.feign;


import com.ogj.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 远程调用：
 * 1）、先去注册中心中找gulimall-coupon这个Clinet
 * 2）、然后再去调用coupon/coupon/member/list方法
 *
 */

@FeignClient("gulimall-coupon")
@Component
public interface CouponFeignService {

    @RequestMapping("coupon/coupon/member/list")
    public R membercoupons();

}
